//
//  i18nViewController.h
//  i18n
//
//  Created by Patrick De Caluwe on 10/2/11.
//  Copyright 2011 patrick.decaluwe@student.uclouvain.be. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface i18nViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, NSXMLParserDelegate>
{
    IBOutlet UIScrollView *scrollView;
    IBOutlet UITableView *difficultWordsTableView;

    IBOutlet UILabel *questionLabel;
    
    IBOutlet UIButton *homeButton;

    IBOutlet UIButton *answerButton1;
    IBOutlet UIButton *answerButton2;
    IBOutlet UIButton *answerButton3;
    
    IBOutlet UILabel *correctLabel1;
    IBOutlet UILabel *correctLabel2;
    IBOutlet UILabel *correctLabel3;
    
    NSInteger currentWord;
    NSInteger numberOfWords;
    NSInteger currentAnswerInt;
    
    NSMutableArray *listOfWords;
    NSMutableArray *listOfDifficultWords;
    
    BOOL wordFound;
    NSMutableString *words;
    NSXMLParser *xmlParser;
    
}


@property (nonatomic,retain) UIScrollView *scrollView;
@property(nonatomic, retain) UITableView *difficultWordsTableView;

@property (nonatomic, readwrite) NSInteger currentWord;
@property (nonatomic, readwrite) NSInteger numberOfWords;
@property (nonatomic, readwrite) NSInteger currentAnswerInt;


@property(nonatomic, retain) NSMutableArray *listOfWords;
@property(nonatomic, retain) NSMutableArray *listOfDifficultWords;

@property(nonatomic, retain) UILabel *questionLabel;
@property(nonatomic, retain) UIButton *homeButton;
@property(nonatomic, retain) UIButton *answerButton1;
@property(nonatomic, retain) UIButton *answerButton2;
@property(nonatomic, retain) UIButton *answerButton3;
@property(nonatomic, retain) UILabel *correctLabel1;
@property(nonatomic, retain) UILabel *correctLabel2;
@property(nonatomic, retain) UILabel *correctLabel3;


-(IBAction)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath:(id)sender;
-(IBAction)answerClicked:(id)sender;
-(IBAction)homeButtonClicked:(id)sender;

- (void)parseXMLFile:(NSString *)pathToFile;


@end
